using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._LocationReferencingTools
{
    /// <summary>
    /// <para>Remove Overlapping Centerlines</para>
    /// <para>Removes overlapping centerline sections to ensure that there is one common centerline in cases where centerline geometry overlaps.</para>
    /// <para>删除重叠的中心线截面，以确保在中心线几何重叠的情况下存在一条公共中心线。</para>
    /// </summary>    
    [DisplayName("Remove Overlapping Centerlines")]
    public class RemoveOverlappingCenterlines : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RemoveOverlappingCenterlines()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_centerline_features">
        /// <para>Input Centerline Features</para>
        /// <para>An input layer or feature class representing an LRS centerline.</para>
        /// <para>表示 LRS 中心线的输入图层或要素类。</para>
        /// </param>
        public RemoveOverlappingCenterlines(object _in_centerline_features)
        {
            this._in_centerline_features = _in_centerline_features;
        }
        public override string ToolboxName => "Location Referencing Tools";

        public override string ToolName => "Remove Overlapping Centerlines";

        public override string CallName => "locref.RemoveOverlappingCenterlines";

        public override List<string> AcceptEnvironments => ["parallelProcessingFactor", "workspace"];

        public override object[] ParameterInfo => [_in_centerline_features, _updated_centerline_features, _out_details_file];

        /// <summary>
        /// <para>Input Centerline Features</para>
        /// <para>An input layer or feature class representing an LRS centerline.</para>
        /// <para>表示 LRS 中心线的输入图层或要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Centerline Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_centerline_features { get; set; }


        /// <summary>
        /// <para>Updated Centerline features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Centerline features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_centerline_features { get; set; }


        /// <summary>
        /// <para>Output Details File</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Details File")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_details_file { get; set; }


        public RemoveOverlappingCenterlines SetEnv(object parallelProcessingFactor = null, object workspace = null)
        {
            base.SetEnv(parallelProcessingFactor: parallelProcessingFactor, workspace: workspace);
            return this;
        }

    }

}